package com.ruoyi.web.controller.h5.design;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.dto.DesignBasicInformationAddDto;
import com.ruoyi.system.service.DesignBasicInformationService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/h5/admin/design")
public class DesignBasicInformationController extends BaseController {

    @Resource
    private DesignBasicInformationService designBasicInformationService;

    /**
     * 新建表单基础信息新增
     */
    @PostMapping("/add")
    public AjaxResult addDesignBasicInformation(@RequestBody DesignBasicInformationAddDto dto){
        return AjaxResult.success(designBasicInformationService.addDesignBasicInformation(dto));
    }
}
